package com.ywk.pattern._14_observer._14_8;


public class Boss extends Subject {
    @Override
    public void addListener(Object object, String methodName, Object... args) {
        System.out.println("�����Ҫ���ڵ�Ա��");
        super.getEventHandler().addEvent(object, methodName, args);
    }

    @Override
    public void notifyX() {
        System.out.println("֪ͨԱ��,�ϰ�����");
        try {
            super.getEventHandler().notifyX();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
